package org.csu.canteen.service;

import org.csu.canteen.entity.Category;
import org.csu.canteen.entity.Item;
import org.csu.canteen.entity.Languages;
import org.csu.canteen.entity.Product;
import org.csu.canteen.vo.CategoryVO;
import org.csu.canteen.vo.IncludeMyListVO;
import org.csu.canteen.vo.ItemVO;
import org.csu.canteen.vo.ProductVO;

import java.util.List;

//全部已测试
public interface CatalogService {
    public CategoryVO getCategory(String categoryId);

    public ProductVO getProduct(String productId);

    public ItemVO getItem(String itemID);

    public IncludeMyListVO getIncludeMyList(String categoryId);

    public List<Product> searchProductList(String keyword);

    public boolean isItemInStock(String itemId);

    public List<Languages> getAllLanguages();
    public List<ProductVO> getProductsByCategory(String categoryId);

    List<ProductVO> getAllProducts();
}
